listbox: Avoid crashing on page down if the list has few rows
authorJoaquim Rocha <jrocha@endlessm.com>
Thu, 1 Sep 2016 11:23:14 +0000 (13:23 +0200)
committerJoaquim Rocha <jrocha@endlessm.com>
Sat, 3 Sep 2016 11:52:39 +0000 (13:52 +0200)
commitadabec7d2565ccd55940b3589e00407bcbf439a9
treed04563322e112d736b6da8abfe7c5f0a7e876517
parent857997be8cbac07d86683c48fb410e4b2e3f1233
listbox: Avoid crashing on page down if the list has few rows

The code always assumed that getting a row at a certain 'y' was
possible but if the list box has more empty space than rows then a
valid row may not be retrieved.

https://bugzilla.gnome.org/show_bug.cgi?id=770703
gtk/gtklistbox.c